package callstackintrospection2;/*
  This is the improved logger interface used in Chapter 5
  that is the basis for the use of call stack introspection.
 */

//start extract Logger
public interface Logger {
    // Types for log records
    public static final int ERROR = 0;
    public static final int WARNING = 100;
    public static final int STATUS = 200;
    public static final int DEBUG = 300;
    public static final int TRACE = 400;

    void logRecord(String message, int logRecordType);

    void logProblem(Throwable problem);
}
//stop extract Logger
